import {createRouter, createWebHistory, RouteRecordRaw} from 'vue-router'
import Index from '../views/Index.vue'

const routes: Array<RouteRecordRaw> = [
    {
        path: '/',
        name: 'index',
        component: Index
    },
    /*路由里配置每一个页面*/
    {
        path: '/liyiruo',
        name: 'Liyiruo',
        component: () => import(/* webpackChunkName: "about" */ '../views/Liyiruo.vue')
    }
]

const router = createRouter({
    history: createWebHistory(process.env.BASE_URL),
    routes
})

export default router
